import request from "@/utils/request"

export const findAll = (data) => {
  return request({
    url:'eduservice/teacher/findAll',
    method:'get',
    params:data
  })
}

export const addTeacher = (data) => {
  return request({
    url:'eduservice/teacher/addTeacher',
    method:'post',
    data
  })
}

export const getTeacher = (data) => {
  return request({
    url:'eduservice/teacher/getTeacher',
    method:'get',
    params:data
  })
}

export const pageQueryTeacher = (data) => {
  return request({
    url:'eduservice/teacher/pageQueryTeacher',
    method:'get',
    params:data
  })
}

export const removeTeacher = (data) => {
  return request({
    url:'eduservice/teacher/removeTeacher/'+data,
    method:'delete',
  })
}

export const updateTeacher = (data) => {
  return request({
    url:'eduservice/teacher/updateTeacher',
    method:'put',
    data
  })
}

export default { findAll, addTeacher, getTeacher, pageQueryTeacher, removeTeacher, updateTeacher }